<style type="text/css">
    .block-exchange .list .item .btn-exc {color: {$diyitem['style']['exbtncolor']}; background: {$diyitem['style']['exbtnbackground']};}
    .block-exchange .list .item .btn-exc.disabled {color: {$diyitem['style']['exbtn2color']}; background: {$diyitem['style']['exbtn2background']};}
</style>

<div class="block-exchange">
    <div class="title">
        <p class="text" style="color: {$diyitem['style']['titlecolor']};">{php echo !empty($diyitem['params']['title'])? $diyitem['params']['title'] :'兑换中心'}</p>
        <p class="text2" style="color: {$diyitem['style']['codecolor']}; display: none;">兑换码: D123456</p>
        <p class="num" style="color: {$diyitem['style']['numcolor']};">此兑换码已查询<span id="num">1</span>次</p>
    </div>
    <div class="input" style="border-color: {$diyitem['style']['inputborder']}; background-color: {$diyitem['style']['inputbackground']};">
        <input placeholder="{php echo !empty($diyitem['params']['placeholder'])? $diyitem['params']['placeholder'] :'请输入兑换码'}" id="exchangeno" value="{$key}" style="color: {$diyitem['style']['inputcolor']}; background-color: {$diyitem['style']['inputbackground']};"/>
    </div>
    <div class="list">
        <div class="item balance" style="display: none">
            <div class="ico money" style="background-image: url({php echo tomedia($diyitem['params']['moneyicon'])})"></div>
            <div class="info">
                <p class="t1" style="color: {$diyitem['style']['goodstitle']};">余额兑换</p>
                <p class="t2" style="color: {$diyitem['style']['goodsprice']};">面值：1000元</p>
            </div>
            <div class="btn-exc btn btn-danger btn-sm" id="balance">兑换</div>
        </div>
        <div class="item score" style="display: none">
            <div class="ico credit" style="background-image: url({php echo tomedia($diyitem['params']['crediticon'])})"></div>
            <div class="info">
                <p class="t1" style="color: {$diyitem['style']['goodstitle']};">积分兑换</p>
                <p class="t2" style="color: {$diyitem['style']['goodsprice']};">面值：1000元</p>
            </div>
            <div class="btn-exc btn btn-danger btn-sm" id="score">兑换</div>
        </div>
        <div class="item coupon" style="display: none">
            <div class="ico coupon" style="background-image: url({php echo tomedia($diyitem['params']['couponicon'])})"></div>
            <div class="info">
                <p class="t1" style="color: {$diyitem['style']['goodstitle']};">优惠券兑换</p>
                <p class="t2" style="color: {$diyitem['style']['goodsprice']};">面值：1000元</p>
            </div>
            <div class="btn-exc btn btn-danger btn-sm" id="coupon">兑换</div>
        </div>
        <div class="item red" style="display: none">
            <div class="ico redbag" style="background-image: url({php echo tomedia($diyitem['params']['redbagicon'])})"></div>
            <div class="info">
                <p class="t1" style="color: {$diyitem['style']['goodstitle']};">红包兑换</p>
                <p class="t2" style="color: {$diyitem['style']['goodsprice']};">面值：1000元</p>
            </div>
            <div class="btn-exc btn btn-danger btn-sm" id="red">兑换</div>
        </div>
        <div class="item goods" style="display: none">
            <div class="ico goods" style="background-image: url({php echo tomedia($diyitem['params']['goodsicon'])})"></div>
            <div class="info">
                <p class="t1" style="color: {$diyitem['style']['goodstitle']};">商品兑换</p>
                <p class="t2" style="color: {$diyitem['style']['goodsprice']};">面值：1000元</p>
            </div>
            <div class="btn-exc btn btn-danger btn-sm" id="goods">兑换</div>
        </div>
    </div>
    <div class="btn btn-danger block" id="exchange" style="color: {$diyitem['style']['btncolor']}; background: {$diyitem['style']['btnbackground']};">{php echo !empty($diyitem['params']['btntext'])? $diyitem['params']['btntext'] :'立即兑换'}</div>
    <div class="btn btn-default block" id="reset" style="color: {$diyitem['style']['backbtncolor']}; background: {$diyitem['style']['backbtnbackground']}; border-color: {$diyitem['style']['backbtnborder']};">{php echo !empty($diyitem['params']['backbtn'])? $diyitem['params']['backbtn'] :'返回重新输入兑换码'}</div>
</div>